Goldman Sachs interview question

isPowerOfThree on leetcode was the easy question, I cannot remember the medium question.