Anonymous interview question

Code for N queen problem