Add solution for problem 32