Program to find the longest common substring of two string of same length