Broadcom Interview Question

few puzzles...