Meta interview question

Write the code for Binary Search