AKUNA CAPITAL interview question

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