Persistent Systems interview question

8 queen problem