Count the Blocks of Ones in a Binary Matrix

Company: Samsung_5oct

Difficulty: easy