Please I need clarification on the algorithm. Can anyone help me with the explanation.