CoinSwitch interview question

min element in sorted rotated array