Google interview question

Find index of maximum element in the array.