Enter two positive integers A and B to calculate the sum of cubes of all numbers between them (inclusive).