Dell Technologies interview question

Q: How to reverse an array