Pregunta de entrevista de Securonix

You are given a sorted array of integers and a target value. Write a function binary_search in Python