문자열 cipher와 정수 code가 매개변수로 주어질 때
해독된 암호 문자열
을 return하도록 solution 함수를 완성해주세요.
class Solution {
public String solution(String cipher, int code) {
String[] str = cipher.split("");
String answer = "";
for(int i = code; i <= str.length; i+=code) {
System.out.print(i + " ");
answer += str[i-1];
}
return answer;
}
}