Longest Common Substring Leetcode Problem 28