public static String Jolly(int[] nums, int maxDif) {
		int dif = 0;
		ArrayList<Integer> al = new ArrayList<Integer>();
		for (int i = 2; i < nums.length; i++) {
			dif = Math.abs(nums[i] - nums[i - 1]);
			if (dif == 0 || dif >= maxDif)
				return "Not jolly";
			if(al.contains(dif))
				return "Not jolly";
			al.add(dif);
		}
		return "Jolly";
	}