Can't pass 2 test cases, can you please tell me where i am going wrong
Hey @haseebshaik00
Here updated ur code : https://ide.codingblocks.com/s/353791 
Re read the question again its not rat in a maze question
if this resolves ur query ,then please mark it as resolved 