CSE22143's submissions for Write a function