iRobot interview question

Live program question, not very difficult