Accenture interview question

Write a code to implement a binary search from a given list.