Search
The function sumExtremes should return the sum of the first and the last elements of the given array. If the array is empty, return 0.
sumExtremes
0
For example: