CRIF interview question

Python programming