UNIQCHAR - UNIQUE ALPHABETS

no tags 

No Story this time!  Get to Action!

Print all unique characters in a string in alphabetical order. If no unique character exists print -1.

Input

t: number of test cases.

c: string with length < 1000.

Example

Input:
3
goodmorning
hello
appa

Output:
dimr
eho
-1


Added by:kousik
Date:2013-09-12
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK BC C-CLANG C NCSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JAVA JS-MONKEY JULIA KTLN NIM OBJC OBJC-CLANG OCT PICO PROLOG PYTHON PYPY PYPY3 PYTHON3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET