REA Group interview question

Complete the Toy Robot coding challenge