Pregunta de entrevista de Paradyme Management

Leetcode style problem, easy/medium difficulty