Remove Duplicate and String reversal