

The first line contains 'T', denoting the number of tests.
For each Test :
The first line contains an integer 'N', denoting the number of buildings.
The second line contains an array 'A' of length 'N', denoting the heights of buildings.
For each test, print an integer, denoting the minimum number of elevators required.
You are not required to print the expected output. It has already been taken care of. Just implement the function.
1 <= 'T' <= 10
1 <= 'N' <= 10^5
1 <= A[i] <= 10^9 i ∈ (1, N)
Note - Sum of 'N' over all test cases does not exceed 10^5.
Time Limit: 1 sec
The number of elevators in building 'x' will be [maximum steps on any side + 1].
Algorithm:
To achieve this, we need to store left-steps and right-steps for each building and reuse them, by which the inner loop (from brute force) can be skipped.
Algorithm: