Reverse a linked-list

How do you write a function that can reverse a linked-list? (Cisco System)