Driver Code
int main ( ) { string s1 = "374747" , s2 = "52627712618930723" ; cout << ( isPower ( s1 , s2 ) ? " YES STRNEWLINE " : " NO STRNEWLINE " ) ; s1 = "4099" , s2 = "2" ; cout << ( isPower ( s1 , s2 ) ? " YES STRNEWLINE " : " NO STRNEWLINE " ) ; return 0 ; }