M2P Fintech Interview Question

max sum subarray and check prime in permutations.