NatWest Group Interview Question

2.reverse a linked list