Hitachi Vantara Interview Question

The interview process was easy. I was asked to share my screen and code how to reverse an array