Longest Common Substring Problem Leetcode