Adding solution to problem 13.
Adding solution to problem 14.