if patt [ i ] is found in ' Str ' , check if it has the minimum index or not . If yes , then update ' minIndex ' and break
if ( patt [ i ] == Str [ j ] and j < minIndex ) : NEW_LINE INDENT minIndex = j NEW_LINE break NEW_LINE DEDENT