solutions for Linked list Exercises