Write a program that solves Sudoku puzzles.