Add solution for problem 35