Increasing-decreasing permutations[IEEE Xtreme] (need help)
task
AtCoder Beginner G problems upsolving