Frage im Vorstellungsgespräch bei TVS Motor Company

Question from data structure and how we will solve it