Coin Purse Shuffle — medium Python Fundamentals problem | Incognition