@@ -0,0 +1,581 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=14005%0A%0Apublic class VerySecureEncryption %7B%0A%09public static String encrypt(String message, int%5B%5D key, int K) %7B%0A%09%09char%5B%5D encryptedMessage = new char%5B message.length() %5D;%0A%09%09%0A%09%09for (int i = 0; i %3C K; ++i) %7B%0A%09%09%09for (int j = 0; j %3C message.length(); ++j) %7B%0A%09%09%09%09encryptedMessage%5B key%5Bj%5D %5D = message.charAt(j);%0A%09%09%09%7D%0A%09%09%09message = String.valueOf(encryptedMessage);%0A%09%09%7D%0A%09%0A%09%09// it's possible to directly return 'message', as its value is the same, but this improves code readability%0A%09%09return String.valueOf(encryptedMessage); %0A%09%7D%0A%7D%0A

Create VerySecureEncryption.java