Amazon Interview Question

design an element system