Nagarro interview question

Python fundamentals