Solved problem 7 sum square difference