Help understanding how to write this algorithm

Printable View