int maxOfThree(int a[]) {
		int high, low, prod = 0;
		for (int i = 0; i < a.length; i++) {
			high = a[i];
			low = a[i];
			for (int j = 0; j < a.length; j++) {
				if (a[j] > a[i] && j > i) {
					high = a[j];
				}
				if (a[j] < a[i] && j < i) {
					low = a[j];
				}
			}
			if (low == 10000 || high == -1) {
				continue;
			}
			if (prod < (low * high * a[i])) {
				prod = low * high * a[i];
			}
		}
		return prod;
	}