LTM Limited interview question

Basics python and oops concepts