Two Ways Out — medium Python Fundamentals problem | Incognition