Arrange Match Results in Repeating Win-Draw-Loss Order
Company: Capital One
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: Rearrange a multiset of win, draw, and loss markers into repeated W-D-L rounds, skipping any marker once its supply is exhausted. The problem tests exact multiset preservation, deterministic round order, imbalanced supplies, empty input, and efficient construction for strings up to one million characters.