Valid Sudoku Leetcode Problem 3