A car with infinite gas tank capacity initially at position 0 with B liters of gas.
It uses 1 liter of gas per 1 mile that it drives.
It starts moving to target position A which lies to the right of starting position.
Along the way, there are gas stations. ith gas station is C[i] miles right of the starting position,
and has D[i] liters of gas.
What is the least number of refueling stops the car must make in order to reach its destination?
If it cannot reach the destination, return -1.
First input argument is an integer A. Second input argument is an integer B. Third input argument is an array of integers C. Fourth input argument is an array of integers D.
Return the least number of refueling stops the car must make in order to reach its destination. If it cannot reach the destination, return -1.
1 <= A, B, D[i] <= 10^9 1 <= lenght of C = lenght of D < = 50000 C < C < C < ... < C[C.length-1] < A
Input 1: A = 100 B = 10 C = [10, 20, 30, 60] D = [60, 30, 30, 40] Output 1: 2 Input 2: A = 100 B = 2 C =  D =  Output 2: -1 Explanation: With initial fuel, we can't even reach the first station.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.