Solution: Longest Common Substring

Solution 1: brute force

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.