Tech Mahindra interview question

basic concepts and mid level java questions