solution to Valid Sudoku