Cognizant Interview Question

Find the minimum and maximum no in a array list