Juniper Networks interview question

1.Reverse linked list without extra space