NVIDIA Interview Question

they asked a leetcode question about arrays