Minimum Rounds to Clear an Array by Pairs and Triples

Company: Visa

Difficulty: medium