NVIDIA interview question

Coding questions were approx Leetcode easy/medium