1. Write a program to find the largest element in an array without using any STL functions.
2. Given an array, find the second smallest element.
3. What is AI, what do you know about chatbots
4. Can you explain what APIs are and provide an industry example?