Appscrip Interview Question

Implement the kadane algorithm and merge sort