public String solution(String s, String skip, int index) {
StringBuilder answerBuilder = new StringBuilder();
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
for (int j = 0; j < index; j++) {
c += 1;
if (c > 'z') {
c -= 26;
}
if (skip.contains(String.valueOf(c))) {
j--;
}
}
answerBuilder.append(c);
}
return answerBuilder.toString();
}
출처:https://school.programmers.co.kr/learn/courses/30/lessons/155652