Yandex Interview Question

They asked me some problem from LeetCode which was related to Binary Search.