Amdocs Interview Question

reverse linked list