Here , we try to find that character , which has more frequency in string Y and less in string X . We try to find this character in lexicographical order so that we get lexicographically smaller string
j = 0 NEW_LINE for j in range ( MAX ) : NEW_LINE INDENT if ctry [ j ] > 0 : NEW_LINE INDENT break NEW_LINE DEDENT DEDENT