Broadcom interview question

memory management, semaphore