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