Pregunta de entrevista de ADP

object oriented programming, asked to do some logic with arrays