updated on Jun 21

I wrote these 2 functions based on the sample provided in the assignment description.