text: Function to find the minimum operations required to get the given string after appending m or n characters from the end to the front of the string in each operation
code: def minimumOperations ( orig_str , m , n ) : NEW_LINE