CSE22147's submissions for Write a function