Added a function to problem 83
Added a function to problem 83