Given a string of letters, print each distinct letter that appears once, with all uppercase letters (in alphabetical order) first, followed by all lowercase letters (in alphabetical order), with no separators.
Input
One string of up to $200$ letters (upper and lowercase).
Output
Print the distinct letters, uppercase group then lowercase group.
Example 1
Input
Banana
Output
Ban
Example 2
Input
SASAquiz
Output
ASiquz
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.