https://www.geeksforgeeks.org/find-rectangle-binary-matrix-corners-1/
- Scan top down, line by line
- For each line, find all column pairs with value 1.Check if such pair already exists in the hashset.
- Return true if already exist.
- Otherwise add the pair to the hashset.
O(mn^2): m rows, and n^2 for finding pairs in each row