Pergunta de entrevista da empresa Amazon

Design an algorithm to find the common sequence of two strings