Cognizant interview question

Find the minimum and maximum no in a array list