public ListNode rotateRight(ListNode head, int n) {
        if(null == head || null == head.next) return head;
        
        int length = getLengthOfList(head);
        
        ListNode tail = getTailOfNode(head);
        tail.next = head;
        
        ListNode pivot = getRotateNode(head, length - n % length);
        
        return pivot;
    }