JAVA coding problems solved -- The N-Queens Puzzle