CSE22162's submissions for Write a function