Enphase Energy interview question

sliding window