[RubyMonk] Sum of cubes