COST Verification Competition Please send solutions to vladimir@cost-ic0701.org Challenge 1: Maximum in an array Given: A non-empty integer array a. Verify that the index returned by the method max() given below points to an element maximal in the array. public class Max { public static int max(int[] a) { int x = 0; int y = a.length-1; while (x != y) { if (a[x] <= a[y]) x++; else y--; } return x; } }