Capgemini interview question

Regarding python and api testing