cse22161's submissions for Write a function