Longest Shelf Run With At Most k Brands — Coding Problem — CareerVerse