Publicis Sapient Interview Question

8 queens problem