solution using three variables

Printable View