ActiveVideo interview question

shuffling cards problem