Solve problem 23
Solve problem 24