title: Split N Maximum Composite Numbers
signature: function splitNMaximumCompositeNumbers(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(55, 12);
    console.log(`TEST-0...${result}`);
  
    result = driver(35, 7);
    console.log(`TEST-1...${result}`);
  
    result = driver(24, 6);
    console.log(`TEST-2...${result}`);
  
    result = driver(75, 17);
    console.log(`TEST-3...${result}`);
  
    result = driver(5, -1);
    console.log(`TEST-4...${result}`);
  
    result = driver(7, -1);
    console.log(`TEST-5...${result}`);
  
    result = driver(50, 12);
    console.log(`TEST-6...${result}`);
  
    result = driver(28, 7);
    console.log(`TEST-7...${result}`);
  
    result = driver(67, 15);
    console.log(`TEST-8...${result}`);
  
    result = driver(59, 13);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
source_py: def split_n_maximum_composite_numbers(n):
      if (n < 4):
          return (- 1)
      rem = (n % 4)
      if (rem == 0):
          return (n // 4)
      if (rem == 1):
          if (n < 9):
              return (- 1)
          return (((n - 9) // 4) + 1)
      if (rem == 2):
          return (((n - 6) // 4) + 1)
      if (rem == 3):
          if (n < 15):
              return (- 1)
          return (((n - 15) // 4) + 2)
source_cpp: int split_n_maximum_composite_numbers(int n) {
    if ( n < 4 ) return - 1;
    int rem = n % 4;
    if ( rem == 0 ) return n / 4;
    if ( rem == 1 ) {
      if ( n < 9 ) return - 1;
      return ( n - 9 ) / 4 + 1;
    }
    if ( rem == 2 ) return ( n - 6 ) / 4 + 1;
    if ( rem == 3 ) {
      if ( n < 15 ) return - 1;
      return ( n - 15 ) / 4 + 2;
    }
  }