Solves the coding problem that involves shuffling a deck of cards to original order