Pregunta de entrevista de Wi-Tronix

Coding question was easy regarding arrays