Implement binary search lower/upper bounds | Amazon