- There will be n lines in the input, each line representing one row of the input board
- Each line will have space-separated integers (0-m for some integer m)
- 0 denotes empty cells. Each non-zero number will appear exactly twice on the input board