Tesla Interview Question

Binary search with streaming values