• + 4 comments

    Instead of checking it against all 26 alphabet, find the shortest of the strings, make a set out of those letters in the shortest string and compare.