Amazon Interview Question

How you will design chess game and write code for stack in C++.