title: Check Integer Overflow Multiplication
signature: pub fn check_integer_overflow_multiplication(a: i64, b: i64) -> bool {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(a: i64, b: i64, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        37, 80, 
        false
      ));
      
      println!("TEST-1...{}", driver(
        10000000000, -10000000000, 
        true
      ));
      
      println!("TEST-2...{}", driver(
        10000000000, 10000000000, 
        true
      ));
      
      println!("TEST-3...{}", driver(
        999999999, 999999999, 
        false
      ));
      
      println!("TEST-4...{}", driver(
        39, 36, 
        false
      ));
      
      println!("TEST-5...{}", driver(
        92, 56, 
        false
      ));
      
      println!("TEST-6...{}", driver(
        14, 21, 
        false
      ));
      
      println!("TEST-7...{}", driver(
        19, 38, 
        false
      ));
      
      println!("TEST-8...{}", driver(
        14, 82, 
        false
      ));
      
      println!("TEST-9...{}", driver(
        88, 41, 
        false
      ));
      
  }
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;
  }