title: Number Digits Product Two Numbers
signature: fun numberDigitsProductTwoNumbers(a: Int, b: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(a: Int, b: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a, b), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(86, 39, 4)
      println("TEST-0...${result}")
      
      result = driver(81, 87, 4)
      println("TEST-1...${result}")
      
      result = driver(48, 84, 4)
      println("TEST-2...${result}")
      
      result = driver(64, 80, 4)
      println("TEST-3...${result}")
      
      result = driver(56, 20, 4)
      println("TEST-4...${result}")
      
      result = driver(5, 70, 3)
      println("TEST-5...${result}")
      
      result = driver(25, 13, 3)
      println("TEST-6...${result}")
      
      result = driver(94, 83, 4)
      println("TEST-7...${result}")
      
      result = driver(5, 55, 3)
      println("TEST-8...${result}")
      
      result = driver(46, 46, 4)
      println("TEST-9...${result}")
      
          
  }
  
  main()
source_py: def number_digits_product_two_numbers(a, b):
      count = 0
      p = abs((a * b))
      if (p == 0):
          return 1
      while (p > 0):
          count = (count + 1)
          p = (p // 10)
      return count
source_cpp: int number_digits_product_two_numbers(int a, int b) {
    int count = 0;
    int p = abs ( a * b );
    if ( p == 0 ) return 1;
    while ( p > 0 ) {
      count ++;
      p = p / 10;
    }
    return count;
  }