title: Sum Matrix Element Absolute Difference Row Column Numbers
signature: def sumMatrixElementAbsoluteDifferenceRowColumnNumbers(n: 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, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        60, 
        71980    
      )}")   
  
  
      println(s"TEST-1...${driver(
        44, 
        28380    
      )}")   
  
  
      println(s"TEST-2...${driver(
        72, 
        124392    
      )}")   
  
  
      println(s"TEST-3...${driver(
        90, 
        242970    
      )}")   
  
  
      println(s"TEST-4...${driver(
        99, 
        323400    
      )}")   
  
  
      println(s"TEST-5...${driver(
        45, 
        30360    
      )}")   
  
  
      println(s"TEST-6...${driver(
        27, 
        6552    
      )}")   
  
  
      println(s"TEST-7...${driver(
        11, 
        440    
      )}")   
  
  
      println(s"TEST-8...${driver(
        65, 
        91520    
      )}")   
  
  
      println(s"TEST-9...${driver(
        52, 
        46852    
      )}")   
  
  }
  
source_py: def sum_matrix_element_absolute_difference_row_column_numbers(n):
      arr = [[0 for x in range(n)] for y in range(n)]
      for i in range(n):
          for j in range(n):
              arr[i][j] = abs((i - j))
      sum = 0
      for i in range(n):
          for j in range(n):
              sum += arr[i][j]
      return sum
source_cpp: int sum_matrix_element_absolute_difference_row_column_numbers(int n) {
    int arr [ n ] [ n ];
    for ( int i = 0;
    i < n;
    i ++ ) for ( int j = 0;
    j < n;
    j ++ ) arr [ i ] [ j ] = abs ( i - j );
    int sum = 0;
    for ( int i = 0;
    i < n;
    i ++ ) for ( int j = 0;
    j < n;
    j ++ ) sum += arr [ i ] [ j ];
    return sum;
  }