need help figuring out algorithm

Printable View