LeetCode

Profitable Schemes

Click here for an explanation.