The output completely matches conditions. The only thing i can think about is, every time i find a rectangle i set it's 1s to 0s. But it doesn't say in conditions you can't change arrays. Thanks.