Codility lesson 3 - PassingCars.java