DoorDash interview question

LeetCode 329 Hard: Longest Common Subsequence