점프와 순간이동
public class Solution { public int solution(int n) { int answer = 0; while (n != 0) { answer += n % 2; n = n / 2; } return answer; } }