Problem 326 - Power of Three Though this problem I have figured out a trivial solution, I copied a best solution.