Shopee interview question

Solve sudoku problem on leet code