private static void buildSolution(int[] board, ArrayList<String[]> solutions) {
		
		String[] boardStr = new String[board.length];

		for (int i = 0; i < board.length; i++) {
			StringBuffer sb = new StringBuffer();
			for(int j = 1; j <= board.length; j++) {
				if(board[i] == j)
					sb.append("Q");
				else
					sb.append(".");
			}
			boardStr[i] = sb.toString();
		}
		
		solutions.add(boardStr);
	}