Barclays Interview Question

What is testing? What are the various types of testing? What are APIs? How does it work?