For this Question: Arun is known for his love of racing sports. He loves Formula 1 with a passion. He traveled to New Delhi to watch the Indian Grand Prix of this year. He noticed that one segment of the circuit was a long straight road. It was impossible for a car to overtake other cars on this segment. Therefore, a car had to lower down its speed if there was a slower car in front of it. While watching the race, Arun started to wonder how many cars were moving at their maximum speed.

Formally, you are provided the max speed of N cars in the sequence in which they entered the circuit's lengthy straightaway. Each car will prefer traveling at its max speed. If the front car's slowness prevents that from happening, it could have to slow down. Besides that, it continues to travel at its max speed while avoiding any crashes. You can assume that the straight section is infinitely long for the purposes of this problem. Count the number of vehicles that were traveling down the straight segment at their max speed.The first line of the input contains a single integer T denoting the number of test cases to follow. The description of each test case contains 2 lines. The first of these lines contains a single integer N, the number of cars. The second line contains N space-separated integers, denoting the maximum speed of the cars in the order they entered the long straight segment.

<b>Constraints</b>
1 &le; T &le; 100
1 &le; N &le; 10<sup>5</sup>
1 &le; speed &le; 10For each test case, output a single line containing the number of cars that were moving at their maximum speed on the segment.Sample Input:
3
1
10
3
8 3 6
5
4 5 1 2 3

Sample Output:
1
2
2, I have written this Solution Code: import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
    public static void main(String args[] ) throws Exception {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 
        int t=Integer.parseInt(br.readLine());
 
        int cars=0;
        int max=0;
        for(int i=0;i<t;i++){
            int n=Integer.parseInt (br.readLine());
            String[] speeds=br.readLine().split(" ");
 
 
            // if no of cars ==1
            if (n==1){
                cars++;
            }
 
            else {
                max = Integer.parseInt(speeds[0]);
                cars++;
                for (int j = 0; j < n - 1; j++) {
 
                    if (Integer.parseInt(speeds[j + 1]) <= max) {
                        cars++;
                        max = Integer.parseInt(speeds[j + 1]);
                    }
 
                }
            }
            System.out.println(cars);
            cars=0;
        }
 
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?