기본적인 구현 문제
function solution(n) {
let twoN = n.toString(2).split("").filter((e)=>{
return parseInt(e) ===1;
}).length;
for(let i = n+1 ; ; i++){
let twoString = i.toString(2).split("").filter((e)=>{
return parseInt(e) ===1;
}).length;
if(twoN === twoString){
return i;
}
}
}