I need to find an algorithm to sort a deck of cards with THREE rules.

1. We can only look at the top 2 cards on the scrambled deck.
2. We may flip the two cards around if we wish
3. The top card...