EPAM Systems interview question

Collections in Java, streams, field visibility