@seemantanishth
I don’t know why you can’t understand
Since we need to print all indices anyway
If you just find first index that is enough
You don’t need two function calls
And by your logic since overall complexity is not affected because its log(n) why not make 2 more frivolous binary search calls ?