Given a string - "str", find the repeated character present first in the string.
Example : Input : geeksforgeeks Output : g (mind that it will be g, not e.)
The first line of input contains an integer T denoting the Test cases. Then T test cases follow.
Second line contains the string - "str"
repeated character present first in the string, if present
otherwise print "-1"