Added solution for problem 14.