Tech Mahindra Interview Question

Math plus programming plus logical reasoning