IBM interview question

About binary search, hash code