Sponsored
Use these hints if you're stuck. Try solving on your own first.
Check if each column has same value in each cell.
If the previous condition is satisfied, we can simply check the first cells in adjacent columns.
Solve with full IDE support and test cases