Homework 2 Solutions

You forgot to return sum.