Https Leetcode Com Problems Nested If Functions