Can anybody help me..

how to insert 8 integer let say 1,2,3,4,5,6,7,8. then swap that would be 5,6,7,8,1,2,3,4. what the suitable algorithm?

i need very urgently..

Pls help..

Thanks.