Pregunta de entrevista de Ramp

The live coding interview is roughly a Leetcode Hard level problem