Solve problem 107