Pregunta de entrevista de Deutsche Bank

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