Max to the Right of Min

Problem Name:
Max to the Right of Min
Site:CodeForces
Links:
Tags:
Problem setters: