Software interview question
Place, rotate and move a Robot on a table of a 5x5 grid.
To run in terminal: npx ts-node main.ts
Command list: PLACE {CORD, CORD, DIRECTION} eg: PLACE 0,0,NORTH
MOVE -> Moves the robot one cell in the direction its facing.
LEFT -> Rotates the robot left
RIGHT -> Rotates the robot right
EXIT -> Exits..
ROBOT {ID} eg. ROBOT 1 -> selects the robot to use by ID.
REPORT -> Outputs the current position of the selected Robot.