EyeControl interview question

Q: write a function that flips a linked list