Solved problem 73

Solved problem 73 and also changed the code to print the output.