UBS interview question

1. Code for singleton pattern 2. SOLID principles