Bureau Veritas Interview Question

write program on binary search