sum arrays problem