Cisco Interview Question

Write logic to reverse a linked list.