PTC Interview Question

create a function that reverses a linked list