LTM Limited interview question

Python problems, pandas basic problems