Xoriant interview question

implement singleton class