S&P Global Interview Question

reverse a linked list , surprisingly every interviewer is interested in this silly question