Tech Mahindra interview question

simple questions, technical bit difficult.