Jane Street interview question

Involved card deck shuffled problem