Leetcode 2959. Number of Possible Sets of Closing Branches | Hello Interview