Amazon Robotics interview question

Recursion + Writing simple classes