Deutsche Bank interview question

some problem statement given.Asked about threading, java8, collection.