N Queen backtracking solution