Google Interview Question

Find index of maximum element in the array.