public static void main(String[] args) {
        System.out.println(new CarFleet().carFleet(10,
                new int[] { 0, 2, 4 },
                new int[] { 2, 3, 1 }));
        System.out.println(new CarFleet().carFleet(10,
                new int[] { 6, 8 },
                new int[] { 3, 2 }));

        System.out.println(new CarFleet().carFleet(12,
                new int[] { 10, 8, 0, 5, 3 },
                new int[] { 2, 4, 1, 1, 3 }));
    }
Why Did you create this class? what does it do?
src/problems/medium/CarFleet.java