Amazon interview question

Model the card shuffling problem