Given an array of three elements, compute the exponentiation of the numbers from right to left. So, if the array is [x, y, z] , you must calculate (x ^ (y ^ z)). Use console.log in the function to output the reduced array.
Try reversing the order of the elements