Squarepoint Capital Interview Question

Standard DP: Longest common subsequence,