Amazon interview question

Design an algorithm to find the common sequence of two strings