Given an $n \times n \times n$ cube containing $n^{3}$ cells, we are to place $n$ queens in the cube so that no two queens challenge each other (so that no two queens are in the same row, column, or diagonal). Can the $n$ -Queens algorithm (Algorithm 5.1) be extended to solve this problem? If so, write the algorithm and implement it on your system to solve problem instances in which $n=4$ and $n=8$.