Counting Paired Monotone Arrays

Company: MediaNet_18sep

Difficulty: medium