CloudNow interview question

Remove duplicates from a string