Cses Problem Set Maximum Subarray Algorithmic Trading