Antra interview question

deduplicate the repeat string.