Fewest Distinct Labels After Withdrawals

Company: Mathworks_19aug

Difficulty: medium