Leetcode 2300. Successful Pairs of Spells and Potions | Hello Interview