first non-repeating char in string + Deutsche flag sort