Accenture Interview Question

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