In Q2 how is the complexity O(n)?

In Q2 how is the complexity O(n) when its binary search?

hi @riagoel3999 we dont have quiz question please send ss