import Algorithms let word = ("GAKKOU".permutations().uniqued().map { String($0) }.sorted(by: <)[99]) print(word)