Pergunta de entrevista da empresa Ramp

The live coding interview is roughly a Leetcode Hard level problem