Tech Mahindra interview question

Questions regarding what is an API, REST, classes, schemas, etc.