Adds a solution to problem 2.
Solves problem 3.