Tech Mahindra interview question

puzzles,analytical