N-Queens backtracking: place queens row by row, backtrack when column/diagonal conflict detected.