Max sum of non contiguour array elements