New update is available. Click here to update.

Playing with the strings.

Posted: 22 Feb, 2021
Difficulty: Easy

PROBLEM STATEMENT

Try Problem

Kevin loves playing with the strings only when they have unique characters. Once his father gave him a string that contains various characters. You have to find out whether Kevin will play with it or not.

Note:

The string may contain English alphabets, numbers, and special characters.
Input Format:
The first line contains a single integer ‘T’ representing the number of test cases. 

The first line of each test case will contain a string ‘S’.
Output Format:
For each test case, return 'true' if Kevin will play with the given string. Otherwise, return 'false'.

Print the output for each test case in a separate line.
Note:
You don’t need to print anything, It has already been taken care of. Just implement the given function.
Constraints:
1 <= T <= 1000
1 <= |S| <= 100

Where '|S|' is the length of the given string.

Time limit: 1 sec