Pregunta de entrevista de Huawei Technologies

binary-search, time complexity? How to apply?