Nagarro interview question

Write Singleton, Immutable classes