Minimum Domino Rotations For Equal Row | Leetcode 1007