Problem

Sum first half (length even).

Examples

  • firstHalfSum([1, 2, 3, 4]) -> 3
Compile and test (Ctrl+Enter)