Tech Mahindra interview question

about my mini project