Micron Technology interview question

Remove duplicate chars from a string