Maximum Subsequence with K Adjacent Differences

Company: Wayfair

Difficulty: medium