ROBOT PATH GRID

I am getting incorrect ans

Got the error. Marked as resolved!

Hey @mverma_be19 , Code seems right to me .
Happy coding !!