Largest Merged Subsequence of Length K

Company: Eatclub

Difficulty: hard