Tech Mahindra interview question

Basic Angular question