title: Pythagorean Quadruple
signature: function pythagorean_quadruple(a, b, c, d)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(a, b, c, d, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(a, b, c, d), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(1, 1, 1, 3, false);
      @printf("TEST-0...%s\n",result);
      
      result = driver(3, 2, 5, 38, false);
      @printf("TEST-1...%s\n",result);
      
      result = driver(0, 0, 0, 0, true);
      @printf("TEST-2...%s\n",result);
      
      result = driver(-1, -1, -1, 1, false);
      @printf("TEST-3...%s\n",result);
      
      result = driver(82, 79, 6, 59, false);
      @printf("TEST-4...%s\n",result);
      
      result = driver(14, 57, 35, 29, false);
      @printf("TEST-5...%s\n",result);
      
      result = driver(6, 96, 45, 75, false);
      @printf("TEST-6...%s\n",result);
      
      result = driver(13, 7, 3, 63, false);
      @printf("TEST-7...%s\n",result);
      
      result = driver(96, 65, 72, 93, false);
      @printf("TEST-8...%s\n",result);
      
      result = driver(70, 33, 6, 2, false);
      @printf("TEST-9...%s\n",result);
      
  end
  
  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;
  }