title: Number Rectangles Nm Grid
signature: def numberRectanglesNmGrid(n: Int, m: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, m: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n, m),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        86, 70, 
        9296385    
      )}")   
  
  
      println(s"TEST-1...${driver(
        33, 65, 
        1203345    
      )}")   
  
  
      println(s"TEST-2...${driver(
        3, 5, 
        90    
      )}")   
  
  
      println(s"TEST-3...${driver(
        91, 12, 
        326508    
      )}")   
  
  
      println(s"TEST-4...${driver(
        33, 27, 
        212058    
      )}")   
  
  
      println(s"TEST-5...${driver(
        13, 75, 
        259350    
      )}")   
  
  
      println(s"TEST-6...${driver(
        75, 36, 
        1898100    
      )}")   
  
  
      println(s"TEST-7...${driver(
        58, 64, 
        3558880    
      )}")   
  
  
      println(s"TEST-8...${driver(
        50, 51, 
        1690650    
      )}")   
  
  
      println(s"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;
  }