Microsoft Interview Question

Write a method (in Java) that would find the longest common substring in two strings