Pregunta de entrevista de Humu

Solve a medium Leetcode question about array manipulation