1. Explain the adapter design pattern.
2. Write an SQL query to find the second largest salary.
3. Write a program to check whether the parentheses are properly balanced, meaning for every opening brace there should be a closing brace present.
4. Write a function that calls an API, retrieves data, and rejects after retrying 3 times.
5. How would you implement a game using ReactJS?