Rakuten Interview Question

Given an array find element using binary search