Capgemini Engineering interview question

python test