Capgemini Invent interview question

Write a basic C program from looping arrays