AddSearch interview question

A JavaScript code to verify the Sudoku configuration.