Accenture interview question

Python