Using the linked list class from homework 3, implement a stack class with the following methods:
- push
- pop
- top
Then use that stack to solve the following problem:
Suppose that you have n queens from a chessboard. Is it possible to place all n queens on the board so that no two queens are in the same row, no two queens are in the same column, and no two queens are on the same diagonal?