CSE22103's submissions for Write a function