Solves problem 15