AppFolio interview question

Traversal of an array