Barclays Interview Question

Delete duplicates characters in string