Pregunta de entrevista de Testsigma

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