Leetcode 3142. Check if Grid Satisfies Conditions | Hello Interview