MongoDB interview question

Code - Valid Sudoku and it's time complexity