Beam Equilibrium Segment Count — Coding Problem — CareerVerse