Accenture Interview Question

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