@@ -0,0 +1,629 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=10814%0A%0Apublic class Cryptography %7B%0A%09public static long encrypt(int%5B%5D numbers) %7B%0A%09%09int minElement = numbers%5B0%5D;%0A%09%09int minElementIndex = 0;%0A%09%09%0A%09%09// Get minimum element%0A%09%09for (int i = 1; i %3C numbers.length; ++i) %7B%0A%09%09%09if (numbers%5Bi%5D %3C minElement) %7B%0A%09%09%09%09minElement = numbers%5Bi%5D;%0A%09%09%09%09minElementIndex = i;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09// Calculate max product%0A%09%09int incrementedElement = (minElement + 1);%0A%09%09long maxProduct = incrementedElement;%0A%09%09for (int i = 0; i %3C numbers.length; ++i) %7B%0A%09%09%09if (i != minElementIndex) %7B%0A%09%09%09%09maxProduct *= numbers%5Bi%5D;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return maxProduct;%0A%09%7D%0A%7D%0A

Create Cryptography.java