Solve #6 with summing difference of cubes and squares