Solve problem 121