Domanda di colloquio di Microsoft

It was hard leeetcode Binary Search problem