Barclays interview question

Technical questions in python Jupyter