Broadcom interview question

detailed as possible