Broadcom interview question

everything was straight forward