Walmart interview question

Algorithmic Question: Find a pivot index in an array