Amazon Interview Question

Design an algorithm to find the common sequence of two strings