ZeroFox interview question

simple algorithm questions. sudoku solve