Create a Ruby program to reverse the elements in an array.
EasyProblem Statement
Create a Ruby program to reverse the elements in an array.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
5 4 3 2 1
Limits
Time: 2s · Memory: 256 MB
Create a Ruby program to reverse the elements in an array.
[1, 2, 3, 4, 5]
5 4 3 2 1
Time: 2s · Memory: 256 MB