Broadcom Interview Question

Bit shifting and algorithms.