Intuit Interview Question

singleton pattern & factory pattern