Fill in findMax so that it returns the largest element. Start from the first element rather than from 0 — the values may all be negative.
findMax
The program prints 9.
9