Maximize the Last Element

Problem Name:
Maximize the Last Element
Site:CodeForces
Links:
Tags:
Problem setters: