Check if current index is the next warmer temperature of any previous indexes
while ( s . length != 0 && T [ s [ s . length - 1 ] ] < T [ i ] ) { daysOfWait [ s [ s . length - 1 ] ] = i - s [ s . length - 1 ] ;