public int[] determineHumidity(int[] intensity, int L, int[] leftEnd) {
		int[] result = new int[leftEnd.length];
		for (int i = 0; i < leftEnd.length; i++) {
			for (int j = 0; j < L; j++) {
				result[i] += intensity[j + leftEnd[i]];
				intensity[j+leftEnd[i]] = 0;
			}
		}
		return result;
	}