Persistent Systems Interview Question

8 queen problem