Epic interview question

Longest Sub sequence Problem.