NVIDIA Interview Question

how to reverse a linked list, time complexity, space complexity, how to optimize this algorithm, what is the advantages and drawbacks of your solutions