@@ -0,0 +1,198 @@
+public int sumHeights(int%5B%5D heights, int start, int end) %7B%0A  int totalDiff = 0;%0A  for (int i = start; i %3C end; i++) %7B%0A    totalDiff += Math.abs(heights%5Bi%5D - heights%5Bi+1%5D);%0A  %7D%0A  return totalDiff;%0A%7D%0A

Create sumHeights.java