NVIDIA interview question

Easy programming questions, in technical rounds think aloud