Citadel interview question

Python questions plus logic questions