CrowdStrike interview question

Reverse an array