WRKSHP interview question

The LinkedList problem