Solves problem 11