public String solution(String s) { return s.substring((s.length() - 1) / 2, s.length() / 2 + 1); }
출처:https://school.programmers.co.kr/learn/courses/30/lessons/12903