Become a software engineer at Smart

Join Smart by simply performing a magic trick

A magician has a deck of cards, 52 cards, 13 of each suit (Hearts, Diamonds, Clubs and Spades).
He will show us all of the cards and we will see that they are ordered and sorted by suit.
We are asked to shuffle the deck.
Then the magician askes to pick a single card.
When the magician reveals the deck of cards once more, the picked card is removed as well as all the related valued cards.
Eg. the 8 of hears it picked, now all the 8's are removed from the deck.