Amazon interview question

OOP question using standard amazon libraries