Pregunta de entrevista de Unthinkable

Longest common substring problem : worst case and best case time complexity