Microsoft Interview Question

phone screen: remove duplicates from string