Pontera interview question

to write the singeltone desgin pattern