ADP interview question

object oriented programming, asked to do some logic with arrays