Amazon Interview Question

Develop a chess game solution