Solve all the n queens placements.