PayPal Interview Question

js find first nonrepetitive char in given string