1780. Check if Number is a Sum of Powers of Three - Explanation

Problem Link