Outermost Maximums

Problem Name:
Outermost Maximums
Site:CodeForces
Links:
Tags:
Problem setters: