Roblox Interview Question

sliding window but with matrix