Validating if a Sudoku solution is valid