public int snowyHighwayLength(int[] startPoints, int[] endPoints) {
		boolean[] hit = new boolean[10000];
		for (int i = 0; i < startPoints.length; i++) {
			for (int j = startPoints[i]; j < endPoints[i]; j++) {
				hit[j]=true;
			}
		}
		int count=0;
		for (boolean b : hit) {
			count+=b?1:0;
		}
		return count;
	}