NVIDIA interview question

Theoretical programming question