Fractal Interview Question

LC Medium Prefix Sum, LC Hard Sliding Window