public int array667(int[] nums) {
  int count = 0;
  for (int i = 0; i < nums.length-1; i++){
    if (nums[i] == 6 && ((nums[i+1] == 6) || (nums[i+1] == 7))){
      count = count + 1;
    }
  }
  return count;
}

solve array667