Juniper Networks Interview Question

1.Reverse linked list without extra space