Problem

Sum elements at even indices.

Examples

  • sumEvenIndex([10, 1, 20, 2]) -> 30
Compile and test (Ctrl+Enter)