ANZ interview question

Write a program to check max element in the array from a given position,