Compute sum of cubes for given range

Note: This problem needs knowledge of topics you haven't covered yet. Reading List

Problem Statement

Compute the sum of cubes for a given range a through b.

Write a method called sum_of_cubes to accomplish this task

Example Given range 1 to 3 the method should return 36


You might want to use Enumerable#inject and Ruby range construct for this problem, more information about them can be found here and here

Output Window

Reading list for this problem

You are yet to work on:

Congratulations, guest!

% of the book completed