Infosys interview question

Very Basic Stream API questions - filter(), collect()