Solved the longest common substring challenge.