Create problem6.rb

Sum square difference