Leetcode Maximum Recursion Depth In Python For All Selected In Power