Infosys Interview Question

maximum subarray sum , oops,dbms