UBS interview question

Leetcode array questions using binary search