NVIDIA interview question

Reverse link list, stack vs heap