BlueData interview question

algorithm to look for a repeated element in string, threading concept in NameNode, recursive function