NSEIT Interview Question

Some question that is supposed to be implemented using java streams API.