Broadcom interview question

both questions were not unexpected