Pergunta de entrevista da empresa Wayfair

Given two strings, find longest common substring