Programming Example
Write a Java program to find the position (index) of the largest element in an array.
Study this program carefully to understand the logic, output, and explanation in a structured way.