Tech Mahindra interview question

Internal working of stream in Java