Question d’entretien chez Meta

How to perform binary search on an infinite array