title: Number Digits Product Two Numbers
signature: class Solution {
  
      public Integer numberDigitsProductTwoNumbers(Integer a, Integer b) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer a, Integer b, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(86, 39, 4);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(81, 87, 4);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(48, 84, 4);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(64, 80, 4);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(56, 20, 4);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(5, 70, 3);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(25, 13, 3);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(94, 83, 4);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(5, 55, 3);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(46, 46, 4);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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;
  }