Solving problem 102