In bus is standing in a traffic light, traffic light changes after every 60 seconds, on every light the motorcycle standing anywhere come to the front of the line. If there is an ambulance within 5 verhicle distance of bus, bus stays at halt till the ambulance passes. Input array: verhicles on traffic light, our bus will come in input array as our bus Length of bus: 5m Output: Time it will take for the bus to pass

Domain: sorting, logical, sliding window