Adds a new solution to the 4th problem.