Salesforce interview question

Find the pivot element in a rotated sorted array?