title: Check Integer Overflow Multiplication
signature: function checkIntegerOverflowMultiplication(a, b) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(a, b, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(37, 80, false);
    console.log(`TEST-0...${result}`);
  
    result = driver(10000000000, -10000000000, true);
    console.log(`TEST-1...${result}`);
  
    result = driver(10000000000, 10000000000, true);
    console.log(`TEST-2...${result}`);
  
    result = driver(999999999, 999999999, false);
    console.log(`TEST-3...${result}`);
  
    result = driver(39, 36, false);
    console.log(`TEST-4...${result}`);
  
    result = driver(92, 56, false);
    console.log(`TEST-5...${result}`);
  
    result = driver(14, 21, false);
    console.log(`TEST-6...${result}`);
  
    result = driver(19, 38, false);
    console.log(`TEST-7...${result}`);
  
    result = driver(14, 82, false);
    console.log(`TEST-8...${result}`);
  
    result = driver(88, 41, false);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def check_integer_overflow_multiplication(a, b):
      if ((a == 0) or (b == 0)):
          return False
      result = (a * b)
      if ((result >= 9223372036854775807) or (result <= (- 9223372036854775808))):
          result = 0
      if (a == (result // b)):
          print((result // b))
          return False
      else:
          return True
source_cpp: bool check_integer_overflow_multiplication(long long a, long long b) {
    if ( a == 0 || b == 0 ) return false;
    long long result = a * b;
    if ( a == result / b ) return false;
    else return true;
  }