Adobe Interview Question

On binary search like allocate min pages