solve the valid sudoku problem.