Motive interview question

find minimum in rotated sorted array