Number of Black Blocks

Number of Black Blocks - Coding Problem | K5kC