Solved problem 6, Sum square difference