Arm interview question

Implement binary search in C