EQ interview question

Longest common substring of given string