Add solution for problem 25