Accenture interview question

Python coading challenges,discussion on previous experience