Zigzag Matrix Walk - Coding problem | OneNoughtOne