length. Build a string of length lowercase English letters in which **every** letter that appears does so an odd number of times.
Many strings qualify, so return the lexicographically smallest one (the one that would come first in a dictionary).length=5 → 'aaaaa'
The length is odd, so five as will do: the letter occurs 5 times.
length=6 → 'aaaaab'
Six as will not do, since 6 is even. The best option is five as followed by one b.
length=2 → 'ab'
length=5
'aaaaa'
Run checks the first 3 tests in your browser. Submit checks all 61 tests on the server, hidden ones included.