Pergunta de entrevista da empresa NVIDIA

they asked a leetcode question about arrays