https://zeroplusfour.com/cards-permutation/
Cards Permutation – HackerRank Solution