Xoriant Interview Question

implement singleton class