Marlabs interview question

What is the difference between Singleton and Factory