Not possible to convert
if ( str1 [ i ] < str2 [ i ] ) : NEW_LINE INDENT print ( - 1 ) NEW_LINE return NEW_LINE DEDENT elif ( str1 [ i ] == str2 [ i ] ) : NEW_LINE INDENT continue NEW_LINE DEDENT else : NEW_LINE INDENT convChar [ ord ( str2 [ i ] ) - ord ( ' a ' ) ] . append ( i ) NEW_LINE convertMap [ i ] = str2 [ i ] NEW_LINE DEDENT