


The first line of input contains an integer N representing the size of the array.
The second line of input contains N space-separated integers representing the height of the balloons.
Return a single integer i.e. the count of the minimum number of arrows required to complete the task.
You are not required to print the output, it has already been taken care of. Just implement the function.
1 <= N <= 10^5
1 <= ARR[i] <= 10^9
Time Limit: 1sec
We can see here that balloons need to be destroyed in a minimum number of arrows so we need to reuse the arrows, also it’s clear that we need a new arrow for every balloon which is not getting destroyed by any previous arrow.
So we can solve this problem greedily by adding a new arrow for every balloon which is not getting destroyed by existing arrows.