WD interview question

Binary search algorithm and worst time complexity