Accenture Interview Question

Python