LIS or Reverse LIS?

Problem Name:
LIS or Reverse LIS?
Site:CodeForces
Links:
Tags:
Problem setters: