CSE22150's submissions for Write a function