Pregunta de entrevista de NVIDIA

they asked a leetcode question about arrays