Pregunta de entrevista de MongoDB

Code - Valid Sudoku and it's time complexity