Pergunta de entrevista da empresa Deloitte

Describe 3 flags algorithm and write out the code for binary search.