Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the amount of time it takes each monster to arrive.
Find the order in which the monsters will arrive.
Solve with full IDE support and test cases