โ† Amazon questions

Print duplicate characters in lexicographical order

Filed under Amazon

Given a string sentence, identify all characters that occur more than once in the string and return them as a string sorted in lexicographical order.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.