As it is a divide and conquer approach, the first thought of applying binary search comes to mind and definitely it works here,
let me explain.
Consider an array of having 0’s followed by 1’s and we apply binary search over this, after finding the middle index just check its previous index value and its next index value.
if both are 0 then move to upper half of sub array
if both are 1 then move to lower half of sub array
and finally if previous is 0 and next is 1 that the transition index
So the overall process is same as binary search hence its time complexity is theta(log n) Hence the correct option is A