solving problem 62