Longest Common Substring

SPOJ - LCS