Leetcode 2171. Removing Minimum Number of Magic Beans | Hello Interview