Allvue Systems interview question

Longest common substring (in java)