input: Write a function to calculate the sum of square numbers in a given range, including the start and end numbers. The function should take two parameters: start and end. If provided an invalid range (start > end), then return -1.
  assert sumOfRanges(10, 20)==673
  assert sumOfRanges(1, 3)==14
  assert sumOfRanges(5, 5)==25
  assert sumOfRanges(20, 10)==-1
output: def sumOfRanges(start, end):
      if start > end:
          return -1
      total = 0
      for num in range(start, end + 1):
          if int(num**0.5)**2 == num:
              total += num
      return total