You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a string, 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.
Input:
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 of length N.
Output:
Print the resultant substring after removing duplicate characters from string.