Current building paired with the building greater in height and on the extreme left
int left = 0 ; if ( minIndSoFar < pairs [ i ] . ind ) { left = ( pairs [ i ] . val * ( pairs [ i ] . ind - minIndSoFar - 1 ) ) ; }