areCellsRelated
Checks if two cells are related (in the same row, column, or box) based on their row and column indices.
Throws an IllegalArgumentException with a specific message if any of the row or column indices are invalid.
Checks if two cells are related (in the same row, column, or box) based on their row and column indices.
Throws an IllegalArgumentException with a specific message if any of the row or column indices are invalid.