Dynamic programming
Your task is to write a program which takes a string and prints out its longest substring.
banana
anana
crabbaj
abba