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
int minimumOperations ( string orig_str , int m , int n ) {