Pregunta de entrevista de Wayfair

Given two strings, find longest common substring