Infosys Interview Question

Find largest element in an array.