code example for first non repeating char