Amazon Interview Question

Model the card shuffling problem