Sum of cubes

Sum of cubes. Given an integer N, calculate the sum of cubes of all integers from 1 to N:

13 + 23 + … + N3

Test Case Input (N) Expected Output
1 3 36
2 4 100
3 5 225