EPAM Systems interview question

Binary search implementation from scratch in python