Equal Row and Column Pairs | Leetcode 2352