Https Leetcode Com Problems Nested If Function In Power