Publicis Sapient interview question

8 queens problem