class Solution {
    public String solution(String cipher, int code) {
        String answer = "";

        for (int i = code - 1; i < cipher.length(); i += code) {
            answer += cipher.charAt(i);
        }

        return answer;
    }
}
   for (int i = code - 1; i < cipher.length(); i += code) {
profile
I'm still hungry.

0개의 댓글