Pregunta de entrevista de Nureva

Leetcode easy problem involving basic data structures