NVIDIA Interview Question

Leetcode mediums, variation to hard