Added the explanation of the algorithm for Question 23.