nums and two indices left and right (inclusive), return the sum of the elements between those indices. If the array is empty, return 0.nums and two indices left and right (inclusive), return the sum of the elements between those indices. If the array is empty, return 0.// Run your code to see the output here.