function solution(n) { const answer = []; const watermelon = '수박'; for (let i = 0; i < n; i++) { answer.push(watermelon); } const result = answer.join('').slice(0, n); return result; }