Pregunta de entrevista de Amazon Robotics

It was a Leetcode medium question.