rename problem 6 to 7, solve problem 6: sum square difference