Write a program to display repeating terms of a given sentence.
The program must output the repeating terms of two or more letters from the given input (input is a sentence separated by spaces without any punctuation except the full-stop indicating the end.) Repeated terms may not span across or include a space. For example, if input is the sentence "I am an ameture mathemagician" the output must be am, ma, an. (note that "em" is not a valid output as it is separated by space).
Repeated terms may overlap with each other. For example if the input is "ababa", the output should include "aba", even though the two instances of it overlap.
ababa aba aba
International competitions are better than intercollege ones.
Inter, ti, er, tion, io, on, ion, tio, co, on, .......etc (t, l must not be included as they are 1 letter.) (Upper lower Cases do not matter)
aabcde cdec -> cde, cd, de aab aacab -> aa, ab aaa aabcaaa ababa -> aaa, aa, ab, aba, ba abababa-> ab, aba, abab, ababa, ba, bab, baba