Added solution for problem 14.
Solution to problem 16.