method

CF

Complete Array reverse Method

An array of N integers is passed as the input to the program and the program must print the array after reversing it. Complete the method…