cbenu4cse22247's submissions for Write a function