title: Number Rectangles Nm Grid
signature: pub fn number_rectangles_nm_grid(n: i32, m: i32) -> i32 {
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: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, m: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n, m), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        86, 70, 
        9296385
      ));
      
      println!("TEST-1...{}", driver(
        33, 65, 
        1203345
      ));
      
      println!("TEST-2...{}", driver(
        3, 5, 
        90
      ));
      
      println!("TEST-3...{}", driver(
        91, 12, 
        326508
      ));
      
      println!("TEST-4...{}", driver(
        33, 27, 
        212058
      ));
      
      println!("TEST-5...{}", driver(
        13, 75, 
        259350
      ));
      
      println!("TEST-6...{}", driver(
        75, 36, 
        1898100
      ));
      
      println!("TEST-7...{}", driver(
        58, 64, 
        3558880
      ));
      
      println!("TEST-8...{}", driver(
        50, 51, 
        1690650
      ));
      
      println!("TEST-9...{}", driver(
        4, 44, 
        9900
      ));
      
  }
source_py: def number_rectangles_nm_grid(n, m):
      return ((((m * n) * (n + 1)) * (m + 1)) // 4)
source_cpp: int number_rectangles_nm_grid(int n, int m) {
    return ( m * n * ( n + 1 ) * ( m + 1 ) ) / 4;
  }