Longest Equal-Value Branch — Coding Problem — CareerVerse