For a given string delete the elements which are appearing more than once consecutively. All letters are of lowercase.
The first line contains an integer 'T' denoting the total number of test cases. In each test cases, a string will be inserted.
In each seperate line the modified string should be output.
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.