Solve problem 1
Solve problem 2