Median of adjacent maximum numbers | CodeChef