function solution(x) {
let sumNum = [...String(x)].map(x => +x).reduce((a,b) => a+b)
if(x%sumNum==0) return true;
return false;
}
def solution(x):
sum_num = sum(list(map(int, list(str(x)))))
if(x%sum_num==0) : return True
return False