Frage im Vorstellungsgespräch bei ServiceNow

Leet Code - Write code and explain for "Minimum Time to Complete Trips"