Qualtrics interview question

Implement a binary search