title: Number Rectangles Nm Grid
signature: fun numberRectanglesNmGrid(n: Int, m: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, m: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n, m), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(86, 70, 9296385)
      println("TEST-0...${result}")
      
      result = driver(33, 65, 1203345)
      println("TEST-1...${result}")
      
      result = driver(3, 5, 90)
      println("TEST-2...${result}")
      
      result = driver(91, 12, 326508)
      println("TEST-3...${result}")
      
      result = driver(33, 27, 212058)
      println("TEST-4...${result}")
      
      result = driver(13, 75, 259350)
      println("TEST-5...${result}")
      
      result = driver(75, 36, 1898100)
      println("TEST-6...${result}")
      
      result = driver(58, 64, 3558880)
      println("TEST-7...${result}")
      
      result = driver(50, 51, 1690650)
      println("TEST-8...${result}")
      
      result = driver(4, 44, 9900)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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;
  }