Add solution for problem 30