S&P Global Interview Question

count the set bits of a byte.