I have a set of code which I want to perform using stream I have done using for loop but unable to do it using stream or other better approach please advice
f