PayPal interview question

js find first nonrepetitive char in given string