cbenu4cse_22008's submissions for Write a function