This is the classic Eight Queens puzzle where you are challenged to put eight queens on a chessboard such that none can capture eachother.