Rosetta Problems

Check if Number is a Sum of Powers of Three

https://leetcode.com/problems/check-if-number-is-a-sum-of-powers-of-three