Tech Mahindra interview question

Math plus programming plus logical reasoning