함수 solution은 정수 x와 자연수 n을 입력 받아, x부터 시작해 x씩 증가하는 숫자를 n개 지니는 리스트를 리턴해야 합니다.
x부터 시작하여 x를 n번 더하며 vector에 저장한 후 return
#include <string>
#include <vector>
using namespace std;
vector<long long> solution(int x, int n) {
vector<long long> answer;
for(int y = 1;y<n+1;y++){
answer.push_back(x*y);
}
return answer;
}