Problem Statement There are NN buildings along the AtCoder Street, numbered 11 through NN from west to east. Initially, Buildings 1,2,-,N1,2,-,N have the heights of A1,A2,-,ANA1,A2,-,AN, respectively. Takahashi, the president of ARC Wrecker, Inc., pl…