title: Maximize Volume Cuboid Given Sum Sides 1
signature: function maximizeVolumeCuboidGivenSumSides1(s: number): number {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(s: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(s),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(8, 18);
    console.log(`TEST-0...${result}`);
  
    result = driver(96, 32768);
    console.log(`TEST-1...${result}`);
  
    result = driver(96, 32768);
    console.log(`TEST-2...${result}`);
  
    result = driver(96, 32768);
    console.log(`TEST-3...${result}`);
  
    result = driver(12, 64);
    console.log(`TEST-4...${result}`);
  
    result = driver(95, 31744);
    console.log(`TEST-5...${result}`);
  
    result = driver(72, 13824);
    console.log(`TEST-6...${result}`);
  
    result = driver(81, 19683);
    console.log(`TEST-7...${result}`);
  
    result = driver(42, 2744);
    console.log(`TEST-8...${result}`);
  
    result = driver(13, 81);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
source_py: def maximize_volume_cuboid_given_sum_sides_1(s):
      length = int((s / 3))
      s -= length
      breadth = (s / 2)
      height = (s - breadth)
      return int(((length * breadth) * height))
source_cpp: int maximize_volume_cuboid_given_sum_sides_1(int s) {
    int length = s / 3;
    s -= length;
    int breadth = s / 2;
    int height = s - breadth;
    return length * breadth * height;
  }