Broadcom interview question

It is moderate in difficulty.