Solves problem 26