FDM Group Interview Question

How to reverse an array ?