NVIDIA interview question

Mainly based on personal master's thesis