The reference solution was wrong. Fixed it, try again.
Sorry I must mention, submitting it as final works, but the test cases fail.
Issue with Ruby. It says in the description to return 0 if there is nothing to sum. One test case fails for me because it says it expects nil to return when there is nothing to sum so I am unable to complete this.
Loading collection data...
The reference solution was wrong. Fixed it, try again.
Sorry I must mention, submitting it as final works, but the test cases fail.
Issue with Ruby. It says in the description to return 0 if there is nothing to sum. One test case fails for me because it says it expects nil to return when there is nothing to sum so I am unable to complete this.