Function that returns true if str1 can be made equal to str2 by rotating either d places to the left or to the right
def RotateAndCheck ( str1 , str2 , d ) : NEW_LINE INDENT if ( len ( str1 ) != len ( str2 ) ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT DEDENT