InMobi interview question

find the minimum element in a rotated sorted array.