Am I misunderstanding the preconditions at the bottom? If len(set(keyword)) == len(keyword), then how can there be duplicated letters in the key?
1
3
7