UnitedHealth Group interview question

reverse an array