Pergunta de entrevista da empresa LogicMonitor

Find the index of a value in a sorted list using binary search