Pergunta de entrevista da empresa MathWorks

Binary search, bit masking was asked.