Microsoft interview question

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