AKUNA CAPITAL Interview Question

Some basic coding problems, the difficulty is medium. Like max subarray sum.