Unisys interview question

find repeated element in string of array?