Question d’entretien chez Sensys Networks

Write a binary search function in any language.