J.P. Morgan interview question

Write a java code to check validity in a 9x9 Suduku board.