Approach hintTry it first, then revealHide
A window is allowed only if each height is divisible by the next one and its fruit total is at most k. Restart the window wherever the divisibility chain breaks, and shrink from the left while the sum is too large.