Write a program to find the Largest and Smallest Array of Element

Description:

Find the largest array element
– Example:

9 is the largest in {8, 9, 3, 4, 2}

2 is the smallest in {8, 9, 3, 4, 2}