Typescript Sum Property In Array Of Strings In C