Frage im Vorstellungsgespräch bei J.P. Morgan

Implement a scenario with doubleton pattern using java