Modified Kadane's Maximum subarray sum


#1

Treat 0 as +1 and 1 as -1 and calculate max. subarray sum with noting the indices too. If the max sum is greater than zero return that range or else return an empty array.