Broadcom interview question

Basic algorithms and ease to solve issues with logic