SubArray Algorithm Questions

Implements a way to find the subarray with the greatest sum
Implements a way to find the smallest subarray that if sorted would end up sorting the whole array