Tech Mahindra interview question

I'm good at java so most of them are on Java.