Amdocs interview question

Immutable class