Pregunta de entrevista de Broadcom

3 coding questions and 2 system designs.