Topic: Language Problem / Level: intermediate

Problem: Write a program to find the maximum sum of a non-contiguous subarray using a function.

Run the code to see the output here...