CSE22135's submissions for Write a function