update answer
if temp < ans : NEW_LINE INDENT ans = temp NEW_LINE pos1 = a1 NEW_LINE pos2 = a2 NEW_LINE DEDENT if ans == - 1 : NEW_LINE print ( " - 1" ) NEW_LINE return NEW_LINE print ( " Minimum ▁ number ▁ of ▁ Operations ▁ are " , ans ) NEW_LINE ans_pair = ( pos1 , pos2 ) NEW_LINE