title: Sum Matrix Element Absolute Difference Row Column Numbers
signature: function sumMatrixElementAbsoluteDifferenceRowColumnNumbers(n) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(60, 71980);
    console.log(`TEST-0...${result}`);
  
    result = driver(44, 28380);
    console.log(`TEST-1...${result}`);
  
    result = driver(72, 124392);
    console.log(`TEST-2...${result}`);
  
    result = driver(90, 242970);
    console.log(`TEST-3...${result}`);
  
    result = driver(99, 323400);
    console.log(`TEST-4...${result}`);
  
    result = driver(45, 30360);
    console.log(`TEST-5...${result}`);
  
    result = driver(27, 6552);
    console.log(`TEST-6...${result}`);
  
    result = driver(11, 440);
    console.log(`TEST-7...${result}`);
  
    result = driver(65, 91520);
    console.log(`TEST-8...${result}`);
  
    result = driver(52, 46852);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
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;
  }