Tilde interview question

They asked me to implement binary search