Doubt regarding the problem Sheldon Coopers Unique String

The problem says to print the lexicographically smallest string yet the sample test case has an input and output which doesn’t match