TVS Motor Company interview question

Question from data structure and how we will solve it