Pregunta de entrevista de COINLIST

The technical interview was a Leetcode-style algorithm question