Check Perfect Power of Base String | FE Prep