Format code of stack_min.
Calculate the max subsequence sum of an array.