Problem 6: Sum square difference