Pergunta de entrevista da empresa UniCourt

I had to solve modified n queens with an optimal solution.