Meta interview question

Simple question with string and searching based on binary search technique. should consider the time complexity.