Cellebrite Interview Question

write an function to discover how many '1's there are in a given number (binary)