Virtusa interview question

write a code to reverse the array in any language