title: Pythagorean Quadruple
signature: function pythagoreanQuadruple(a, b, c, d) {
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(a, b, c, d, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b, c, d),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(1, 1, 1, 3, false);
    console.log(`TEST-0...${result}`);
  
    result = driver(3, 2, 5, 38, false);
    console.log(`TEST-1...${result}`);
  
    result = driver(0, 0, 0, 0, true);
    console.log(`TEST-2...${result}`);
  
    result = driver(-1, -1, -1, 1, false);
    console.log(`TEST-3...${result}`);
  
    result = driver(82, 79, 6, 59, false);
    console.log(`TEST-4...${result}`);
  
    result = driver(14, 57, 35, 29, false);
    console.log(`TEST-5...${result}`);
  
    result = driver(6, 96, 45, 75, false);
    console.log(`TEST-6...${result}`);
  
    result = driver(13, 7, 3, 63, false);
    console.log(`TEST-7...${result}`);
  
    result = driver(96, 65, 72, 93, false);
    console.log(`TEST-8...${result}`);
  
    result = driver(70, 33, 6, 2, false);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def pythagorean_quadruple(a, b, c, d):
      sum = (((a * a) + (b * b)) + (c * c))
      if ((d * d) == sum):
          return True
      else:
          return False
source_cpp: bool pythagorean_quadruple(int a, int b, int c, int d) {
    int sum = a * a + b * b + c * c;
    if ( d * d == sum ) return true;
    else return false;
  }