public int bigHeights(int[] heights, int start, int end) {
  int totalDiff = 0;
  for (int i = start; i < end; i++) {
    int diff = Math.abs(heights[i] - heights[i+1]);
    if (diff >= 5) totalDiff++;
  }
  return totalDiff;
}

Create bigHeights.java