Tech Mahindra Interview Question

Internal working of stream in Java