Pregunta de entrevista de Citadel

Coding. Algorithm about medium difficulty on Leetcode.