Pergunta de entrevista da empresa Bright Data

It was a LeetCode-style task about array transformation