Want to solve this problem? Login now to get access to solve the problems

Problem

Submissions

Solution

Leaderboard

Coming soon

1

Difficulty: EASY

Avg. time to solve

15 min

Success Rate

80%

Problem Statement

Suggest Edit

```
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
```

```
1
aDcadhc
```

```
D
```

```
1
gdhIgHada
```

```
h
```

Want to solve this problem? Login now to get access to solve the problems