GlobalLogic interview question

Print 1st non repeating element in a string