diff --git a/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/Decryption.java b/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/Decryption.java new file mode 100644 index 0000000..d098d99 --- /dev/null +++ b/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/Decryption.java @@ -0,0 +1,35 @@ + +public class Decryption { + + static String decryption(String s) { + StringBuilder s1 = new StringBuilder(); + String result =""; + s1.append(s); + s=s1.reverse().toString(); + char[] chars = s.toCharArray(); + s1.delete(0,chars.length); + for(int i=0;i