Pregunta de entrevista de Best Buy

Medium leet code problem solving