algorithm: maximum-sum-of-sub-sequence: adding code for calculating maximum sum of sub-sequence