CSE22110's submissions for Write a function