Added the solution to Question 23.