Adding and committing a solution to problem 2.