Amazon interview question

design an element system