Pergunta de entrevista da empresa Amazon Robotics

some basic problem about recursion