Pregunta de entrevista de Rakuten

Typical leetcode easy to medium for technical