SigTuple interview question

print the string by removing duplicates