JavaArraysEx Reverse ArrayOn this pageEx Reverse ArrayDescriptionGet from the user a bunch of numbers until user press 0, and after that, print them in reverse order.ExampleInput - 1Input - 3Input - 2Input - 0Output - [2, 3, 1]More ChallengingIf you created a new array to reverse the array. Then try to change the array itself.