Medians of Subsequences

Company: Amazon_24sep

Difficulty: medium