CSE22132's submissions for Write a function