Largest sub array with contiguous elements