Pregunta de entrevista de Microsoft

It was hard leeetcode Binary Search problem