Shopee interview question

Use binary research to solve a technical problem