First Unique Character
Print the first character that appears exactly once in S, or NONE if every character repeats.
Input: one line with the string S.
Output: the first non-repeating character, or NONE.
Constraints:
- 1 ≤ |S| ≤ 104
- S contains lowercase English letters
Sample Tests
Input 1
swiss
Output 1
w
Input 2
aabb
Output 2
NONE
Discussion (opens after you solve — no spoilers before)
No comments yet.