Brute force algorithm for solving a Sudoku puzzle.