Longest Common Substring

HDU - 1403