Tech Mahindra interview question

Basics on C, Java, SQL