Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there something you can keep track of from one road to another?
How would knowing the start time for each state help us solve the problem?
Solve with full IDE support and test cases