Valid Sudoku Leetcode Solution C