Capgemini interview question

Data structure, loops, programming, python