NVIDIA Interview Question

Q: linked list problem