IBM interview question

data structures and algorithms like all substrings