Amazon interview question

They asked about object-oriented design principles and to solve a coding problem involving arrays