Broadcom interview question

Dynamic Programming Sorting Bit Operations