power of two leetcode c solution