finished 2.2 question in two way. One used LinkedList class,the other used self defined LinkedListNode and solved the question recursively