Rotate a linked list X times

Code to Rotate a linked list X times