CSE22148's submissions for Write a function