Add solution to problem 25.