Walmart Interview Question

Algorithmic Question: Find a pivot index in an array