5. Sum first and last
You are not logged in.
Input
Goal output
Your output
  • [2,8,8,8,3]
    5
    3
  • [4,4]
    8
    4
  • [1,2,3]
    4
    3
  • [7,0,5,7]
    14
    7
  • [8,4,2,1,0]
    8
    0
Some tests failed