Spiral Grid Traversal - Coding problem | OneNoughtOne