Not able to solve this question

how O(logN) is the answer, I cant solve this…
my ans is O(1)