working on arrays

trying to sum the parts of an array even if some element are not numbers