comefrom: <awangdev>Pow(x, n)_1.java
code: public double helper(double x, int n) {
          if (n == 0) {
              return 1;
          }
          if (n == 1) {
              return x;
          }
          double val = helper(x, n / 2);
          if (n % 2 == 0) {
              return val * val;
          } else {
              return val * val * x;
          }
      }
masked: public double sample_funcname ( double x , int n ) {
    if ( n == 0 ) {
      return 1 ;
    }
    if ( n == 1 ) {
      return x ;
    }
    double val = helper ( x , n / 2 ) ;
    if ( n % 2 == 0 ) {
      return val * val ;
    }
    else {
      return val * val * x ;
    }
  }
  