Morgan Stanley Interview Question

Write code for longest common subsequence