First Completely Painted Row or Column | Leetcode 2661