MathWorks Interview Question

Singleton design pattern in C++ and Java.