Wi-Tronix interview question

Coding question was easy regarding arrays