Pregunta de entrevista de IBM

data structures and algorithms like all substrings