Find the Power of K-Size Subarrays II
Track the length of the current run of consecutive rising values as you scan once, and read each window power from that run.
Track the length of the current run of consecutive rising values as you scan once, and read each window power from that run.