We are given a nxn partially solved square board and have to solve it according to the following rules
- We need to fill the empty cells with numbers from from 1-n
- Numbers from 1-n already on the board cannot be replaced
- Each number from 1-n must appear exactly once in a column in the solved board
- Each number from 1-n must appear exactly once in a row in the solved board