Flexible Sudoku Solver
Grid Size (e.g., 9 for 9×9, 12 for 4×3):
Generate Grid
Solve Sudoku