Navigate unknown maze to find target | Meta Interview Question