https://school.programmers.co.kr/learn/courses/30/lessons/120813
class Solution {
public int[] solution(int n) {
int[] answer = new int[(n / 2) + (n % 2)]; // ๋ฐฐ์ด์ ํฌ๊ธฐ ์ง์
int a = 1;
for(int i = 0; i < answer.length; i++){ // ๋ฐฐ์ด ํฌ๊ธฐ๋งํผ ๋ฐ๋ณต
answer[i] = a; // ํ์๋ง ๋ด๊ธฐ
a += 2;
}
return answer;
}
}