This is to solve the famous N-Queen problem. Placing all the queens in an n*n board such that none of them can take out others.