GEICO interview question

Valid sudoku on leetcode question