Find Transition Point
easy
1. Given a sorted array containing only 0s and 1s, find the transition point. 2. Transition Point is defined as 1's starting point. 3. If there is no transition point, return -1.
Constraints
1 <= N <= 500000 0 <= arr[i] <= 1
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
6
0 0 0 0 1 1
Sample Output
4