Neustar interview question

In coding they asked to remove duplicates from a string eg WelComeToNeustar -> WelComTNusar

Interview Answers

Anonymous

25 Nov 2019

I used linkedhashmap remove the duplicates and jus printed the contents in hashmap

Anonymous

4 Apr 2021

s='WelComeToNeustar' q='' for i in s: if i.upper() in q or i.lower() in q: continue q += i print(q)