Zoom Communications interview question

sliding window scale problem