Uber interview question

write an algorithm to check whether a sudoku board is valid/complete.