Given a string which may contains lowercase and uppercase chracters. The task is to remove all duplicate characters from the string and print the resultant string. The order of remaining characters in the output should be same as in the original string.
The first line of input contains an integer T denoting the number of test cases. The description of T test cases follows. Each test case contains a string.
Print the resultant string after removing duplicate characters from string.
1 ≤ T ≤ 100
1 ≤ N ≤ 100
Testcase 1: After removing duplicate characters such as e, k, g, s, we have string as geksfor.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.