LTM Limited interview question

How have u come to solve this problem in your project?