Frage im Vorstellungsgespräch bei ANZ

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