Wipro Interview Question

Object-oriented programming (OOP) concepts. Find the largest/smallest element in an array.