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