This function take head pointer of list , start and end points of sublist that is to be rotated and the number k and rotate the sublist to right by k places .
def rotateSubList ( A , m , n , k ) : NEW_LINE INDENT size = n - m + 1 NEW_LINE DEDENT