Function to check whether the given number is Perfect Digital Invariant number or not
bool isPerfectDigitalInvariant ( int x ) { for ( int fixed_power = 1 ; ; fixed_power ++ ) { int temp = x , sum = 0 ;