public int questionableDigit(int[] transactions, int threshold) {
		double[] count = new double[10];
		double[] log = new double[10];
		for(int i : transactions){
			String s = Integer.toString(i);
			int first = Integer.parseInt(s.substring(0,1));
			count[first] += 1;
		}
		for(int i = 1;i <= 9;i++){
			log[i] = Math.log10(1+1/(double)i)*transactions.length;
			//System.out.println(log[i]);
		}
		for(int i = 1;i <= 9;i++){
			if(count[i] < log[i]/(double)threshold || count[i] > log[i]*(double)threshold)
				return i;
		}
		return -1;
	}