Solution for problem [Valid Sudoku]