CSE22139's submissions for Write a function