Amazon interview question

OOPS concept design for an elevator