Want to solve this problem? Login now to get access to solve the problems
The first line contains a single integer T representing the number of test cases. The first and the only line of each test case will contain the input string.
For each test case print the first non-repeating character in the input string.
1 <= T <= 10 1 <= Length of Input String <= 10^5 Time Limit: 1sec