title: Write You Own Power Without Using Multiplication And Division
signature: function write_you_own_power_without_using_multiplication_and_division(a, b)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(a, b, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(66, 4, 18974736);
      @printf("TEST-0...%s\n",result);
      
  end
  
  main()
source_py: def write_you_own_power_without_using_multiplication_and_division(a, b):
      if (b == 0):
          return 1
      answer = a
      increment = a
      for i in range(1, b):
          for j in range(1, a):
              answer += increment
          increment = answer
      return answer
source_cpp: int write_you_own_power_without_using_multiplication_and_division(int a, int b) {
    if ( b == 0 ) return 1;
    int answer = a;
    int increment = a;
    int i, j;
    for ( i = 1;
    i < b;
    i ++ ) {
      for ( j = 1;
      j < a;
      j ++ ) {
        answer += increment;
      }
      increment = answer;
    }
    return answer;
  }