Rakuten interview question

Given an array find element using binary search