TuSimple interview question

Longest Same Subsequence Topologic Sort