Leetcode 3494. Find the Minimum Amount of Time to Brew Potions | Hello Interview