Amazon Interview Question

algorithm problems and OOD problem of card game