TipRanks interview question

check for duplicate letters in string