Domanda di colloquio di Accenture

Explain OOPs concepts with examples. Write a program to find the second largest number in an array. How does a REST API work?