class Solution { public String solution(String cipher, int code) { String answer = ""; String[] cArr = cipher.split(""); for(int i = 0; i <= cArr.length / code; i++) { answer += cArr[code * i - 1]; } return answer; } }