Micron Technology Interview Question

Remove duplicate chars from a string