CSE20468's submissions for Write a function