SADA Interview Question

finding largest element in array