Question d’entretien chez Testsigma

write a program to find the duplicate string in the given string without inbuilt function?