Pregunta de entrevista de Wipro

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