Question d’entretien chez AKUNA CAPITAL

I got something similar to Leetcode's Maximum Subarray.