Longest Good Subsequence

Company: Walmart

Difficulty: medium