Minimum Path in Binary Grid - Coding problem | OneNoughtOne