Pregunta de entrevista de NVIDIA

Leetcode mediums, variation to hard