add NQueensPuzzle.java class
update NQueensPuzzle.java class