Remove duplicate characters from strings and find the shortest string
(Yes, the solution is needed in such ancient operators) Code: https://pastebin.com/HA87VANY