Given an array A[] of size n. The task is to find the largest element in it.