AppFolio Interview Question

Find the index of the second largest element in the array.