ProgrammingAssignment2

Code for both the functions in the file