NVIDIA interview question

Write a function in C that reverses a linked list