Morgan Stanley interview question

Write code for longest common subsequence