Help me re-write pseudo code?

Printable View