Tableau Software interview question

Round 2 : N queen chess problem