Pergunta de entrevista da empresa Broadcom

real case study and asking for solution with the problem in real life