Sensys Networks interview question

Write a binary search function in any language.