here is a code to reverse a sub sequence in a Linked List