TORC Robotics interview question

Coding Round