Pontera Interview Question

to write the singeltone desgin pattern