The prison is overcrowded and the warden wants to free up some space, so he is going to give two prisoners a game. They will be pardoned if they win. The prisoners will know the rules of the game before hand and can discuss a strategy before the game starts. Once the game starts they may not communicate.
The game is as follows:
The first prisoner of the team goes into the warden’s office. The warden randomly shuffles a standard 52 card deck. He then deals all cards onto a table face up. The first prisoner may swap the position of any two cards. The warden then turns all of the cards face down and the first prisoner leaves the room.
The second prisoner enters the wardens office. The warden will name one the 52 cards at random. The second prisoner then has 26 guesses to find this named. After each guess, the guessed card is flipped over.
What strategy should the two prisoners use?