IsPowerOfTwo, Generate all subsets, PenguinTiles problem from SRM 566 Div2