title: Check Integer Overflow Multiplication
signature: check_integer_overflow_multiplication <- function(a, b) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(a, b, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          37L, 80L, 
          FALSE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          10000000000L, -10000000000L, 
          TRUE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          10000000000L, 10000000000L, 
          TRUE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          999999999L, 999999999L, 
          FALSE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          39L, 36L, 
          FALSE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          92L, 56L, 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          14L, 21L, 
          FALSE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          19L, 38L, 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          14L, 82L, 
          FALSE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          88L, 41L, 
          FALSE
      )))
  
  }
  
  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;
  }