Tech Mahindra interview question

Aptitude, logical reasoning and Java