Franklin Energy Interview Question

What is a singleton pattern, how to implement it and why is it needed