Leetcode 2787. Ways to Express an Integer as Sum of Powers | Hello Interview