Ad
  • Custom User Avatar

    Description is not clear.

    Given an array of integers,

    1. If the array is empty, you should return 0, otherwise
    2. first calculate the sum 's' of all the integers that have an even index (0 based index)
    3. then multiply the result 's' by the last item of the array and return the result.