This time, you are asked to traverse the world one diagonal after the other. Have a look at the objective world for more details on the requested traversal order.
You may find useful to use an integer variable diag
storing the
number of the diagonal you are traversing.
Your turn...