Genpact Interview Question

Singleton bean example Coding problem with streams