LTM Limited interview question

Project discussion and python related