Pregunta de entrevista de PayPal

js find first nonrepetitive char in given string