Persistent Systems interview question

Basic java Code java8 Code Data structure