maxSubSeqSum dynamic programming