I'm gonna help you out here by writing the jist of the loop that youll need because you may have to write this in c or java or python so all you need to do is create an array thats the same size as the array you want to duplicate and a for loop
int main ( ) {
int i,b [5],a [5] ={1,2,3,5,7};
for(i=0;i <5;i++)
{
b [i]=a [i];
}
return 0;
} //hope this helps :)