Pregunta de entrevista de Shrine Software

print elements of array and array list using for each loop