Longest Common Substring Leetcode Practice