solve n queens