How to take user input in sudoku grid instead of generate prob btn

Instead of generate problem how can we ask players to enter numbers into sudoku grid and we should give the answer if possible or no solution if it is not possible.