Criteo Interview Question

It was one of many varieties of coding problem, which require you to customize a binary search algorithm.