Given a 2D array of characters ('-' , 'X' , 'R' , 'T'), find out whether there is a path from the robot 'R' to the target 'T'. The robot can move up, down, left or right. Cells marked with 'X' are blocked and cannot be passed through.
Check out your Company Bowl for anonymous work chats.